<?php
declare(strict_types=1);

namespace app\admin\service;

use app\admin\model\WorkExperience as WorkExperienceModel;

/**
 * 工作经验
 * Class WorkExperienceService
 * @package app\admin\service
 */
class WorkExperienceService
{
    /**
     * 指定工作经验字段值
     * @param $where
     * @param string $field
     * @return mixed
     */
    public static function findWorkExperienceValue($where, $field = 'name')
    {
        return WorkExperienceModel::findWorkExperienceValue($where, $field);
    }

    /**
     * 所有工作经验
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function getWorkExperience()
    {
        return WorkExperienceModel::getWorkExperience();
    }
}